package com.zhang.mapper;

import com.zhang.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

/**
 * @author zhangshihao
 * @create 2023-03-03 11:50
 */
@Mapper
@Repository
public interface EmployeeMapper {
    void save(Employee employee);

    void delete(Integer id);

    Collection<Employee> getAll();

    Employee getEmployeeById(Integer id);

    void update(Employee employee);
}
